package com.dongdongqiang.common.query;


import com.dongdongqiang.common.base.BasePage;

/**
 * genericQueryDAO 接口 支持Mysql Postgres 切换
 * Created by zhangzhenbin on 17-8-9.
 */
public interface GenericQueryDAO {
    <T> BasePage<T> queryPage(String querySql, Class<T> clazz, int page, int pageSize, Object... params) throws QueryException ;

    <S extends PageSearchForm, T> BasePage<T> queryPage(S searchForm, Class<T> clazz);
}
